﻿<UserControl x:Class="Sasa.QualityTools.CodeAnalysis.FxCopIntegrator.Views.RuleDetailContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             x:Name="root"
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="300">
    <ScrollViewer>
        <Grid DataContext="{Binding Current}"  Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <!--<Button Command="{Binding DataContext.BackCommand, ElementName=root}" ToolTip="Back to code analysis result">
                    <Image Source="pack://application:,,,/Sasa.QualityTools.CodeAnalysis.FxCopIntegrator;component/Resources/Back.png"/>
                </Button>-->
                <TextBlock Margin="2" VerticalAlignment="Center">
                    <Hyperlink Command="{Binding DataContext.BackCommand, ElementName=root}">Back to code analysis result</Hyperlink>
                </TextBlock>
            </StackPanel>
            <Label Grid.Row="1" FontWeight="Bold">Name :</Label>
            <TextBox Grid.Row="2" Text="{Binding Name}" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0" Margin="15,0,0,5"/>
            <Label Grid.Row="3" FontWeight="Bold">Check Id :</Label>
            <TextBox Grid.Row="4" Text="{Binding CheckId}" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0" Margin="15,0,0,5"/>
            <Label Grid.Row="5" FontWeight="Bold">Category :</Label>
            <TextBox Grid.Row="6" Text="{Binding Category}" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0" Margin="15,0,0,5"/>
            <Label Grid.Row="7" FontWeight="Bold">Description :</Label>
            <TextBox Grid.Row="8" Text="{Binding Description}" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0" Margin="15,0,0,5"/>
            <Label Grid.Row="9" FontWeight="Bold">How to fix :</Label>
            <TextBox Grid.Row="10" Text="{Binding DataContext.ProblemMessage, ElementName=root}" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0" Margin="15,0,0,5"/>
            <Label Grid.Row="11" FontWeight="Bold" x:Name="suppressMessage">Suppress Message :</Label>
            <TextBox Grid.Row="12" Text="{Binding DataContext.SuppressMessage, ElementName=root}" TextWrapping="Wrap" IsReadOnly="True" BorderThickness="0" Margin="15,0,0,5"/>
        </Grid>
    </ScrollViewer>
</UserControl>
